package item14;

// Encapsulation of data by accessor methods and mutators
// 通过方法访问器方法和更改器来封装数据
public class Point02 {

    private double x;
    private double y;

    public Point02(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }
}
